export const columns = [
    {
        title: '订单编号',
        dataIndex: 'orderCode',
        key: 'orderCode',
        align: 'center',
        width: '230px'
    },
    {
        title: '提交时间',
        dataIndex: 'createTime',
        key: 'createTime',
        align: 'center',
        width: '180px'
    },
    {
        title: '订单金额',
        dataIndex: 'amount',
        key: 'amount',
        align: 'center',
    },
    {
        title: '实际金额',
        dataIndex: 'realAmount',
        key: 'realAmount',
        align: 'center',
    },
    {
        title: '支付方式',
        dataIndex: 'channelName',
        key: 'channelName',
        align: 'center',
    },
    {
        title: '订单状态',
        dataIndex: 'orderStatus',
        key: 'orderStatus',
        scopedSlots: { customRender: 'orderStatus' },
        align: 'center',
    },
    {
        title: '描述',
        dataIndex: 'description',
        key: 'description',
        align: 'center',
    },
]

export const addressColumn = [
    {
        title: '姓名',
        dataIndex: 'receiver',
        key: 'receiver',
        align: 'center',
    },
    {
        title: '手机号码',
        dataIndex: 'receiverPhone',
        key: 'receiverPhone',
        align: 'center',
    },
    {
        title: '详细地址',
        dataIndex: 'detailedAddress',
        key: 'detailedAddress',
        scopedSlots: { customRender: 'detailedAddress' },
        align: 'center',
    },
    {
        title: '是否默认地址',
        dataIndex: 'isDefault',
        key: 'isDefault',
        align: 'center',
        scopedSlots: { customRender: 'isDefault' },
    },
]

export const lowerColumns = [
    {
        title: '创建时间',
        dataIndex: 'createTime',
        key: 'createTime',
        align: 'center',
        width: '180px'
    },
    {
        title: '下级用户ID',
        dataIndex: 'sonUserId',
        key: 'sonUserId',
        align: 'center',
    },
    {
        title: '下级手机号',
        dataIndex: 'sonUserPhone',
        key: 'sonUserPhone',
        align: 'center',
    },
    {
        title: '下级用户姓名',
        dataIndex: 'sonUserName',
        key: 'sonUserName',
        align: 'center',
    },
    {
        title: '层级',
        dataIndex: 'level',
        key: 'level',
        align: 'center',
        scopedSlots: { customRender: 'level' },
    },
]